package cn.luoshaocheng.system.domain;

import cn.luoshaocheng.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Menu extends BaseDomain {
    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parent_id;
    private String intro;
    private Integer state;
    private Menu parent;
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();
    //...其他代码略
}
